<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%@ page language="java"%>

<div class="login">
	<security:authorize access="isAuthenticated()">
		Hello <security:authentication property="principal.username" />&nbsp;
		<a href="/j_spring_security_logout">[Logout]</a>
	</security:authorize>
	<security:authorize access="isAnonymous()">
		<a href="/login">Login</a>
	</security:authorize>
	
</div>

<div class="title">
	<h1> Spring Web Start test</h1>
</div>

<div class="menucontainer">
	<ul class="menu">             
		<li><a href="/home">Home</a></li>
		<li><a href="/about">About</a></li>
		<security:authorize access="hasRole('ROLE_SWSUSER')">
			<li><a href="/private">private</a></li>
		</security:authorize>
	</ul>
</div>